package com.nw.serviceImpl;


import com.nw.dao.CommentPermissionDao;
import com.nw.entity.CommentPermission;
import com.nw.service.CommentPermissionService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
public class CommentPermissionServiceImpl implements CommentPermissionService {
    @Resource
    CommentPermissionDao commentPermissionDao;
    @Override
    public void addCommentPermission(CommentPermission commentPermission) {

    }

    @Override
    public void updateCommentPermission(String commentPermissionId) {
        CommentPermission commentPermission = new CommentPermission();
        commentPermission.setCommentPermissionId(commentPermissionId);
        commentPermission.setCommentTimeRemain("0");
        commentPermissionDao.updateCommentPermission(commentPermission);
    }
}
